package com.hk.commons.img;

import lombok.Data;
import lombok.experimental.Accessors;

import java.awt.*;


/**
 * 填充矩形框
 *
 * @author Kevin
 */
@Data
@Accessors(chain = true)
public class RectFillCell implements MergeCell {

    private Font font;

    private Color color;

    private int x, y, w, h;

    @Override
    public void draw(Graphics2D g2d) {
        g2d.setFont(font);
        g2d.setColor(color);
        g2d.fillRect(x, y, w, h);
    }
}
